package cn.lyvust.first.manage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("user_main")
public class UserMain extends Model<UserMain> implements Serializable  {

    @TableId
    private String id;
    private String username;
    private String password;
    private String fullname;
    private String picture;
    private Integer userStatus;
    private String registerMail;
    private String mobile;

    @TableField(exist = false)
    private List<SysRole> roles;
    private Date createDate;
    @TableField(exist = false)
    private UserInfo userInfo;

    private static final long serialVersionUID = 1L;

}
